#include <stdio.h>
#include <stdio.h>
int main()
{
    chdir("/home/xiaoqian/MyData/Course");//改变当前进程的工作路径
    FILE* fp = fopen("666.c", "w");
    fclose(fp);

    while (1)
    {
        printf("I am a process, pid:%d, ppid:%d\n", getpid(), getppid());
        sleep(2);
    }

    return 0;
}
